<template>
  <div class="swiper">
    <swiper :options="swiperOption" class="page-swiper" ref="mySwiper">
      <!-- slides -->
      <swiper-slide class="swiper-img" v-for="item of List" :key="item.id"><img :src="item.url" alt=""></swiper-slide>
      <!-- Optional controls -->
      <div class="swiper-pagination"  slot="pagination"></div>
    </swiper>
  </div>
</template>

<script>
export default {
  name: 'Swiperlist',
  data () {
    return {
      swiperOption: {
        autoplay: false,
        pagination: '.swiper-pagination',
        slidesPerView: '3.6'
      }
    }
  },
  props: {
    List: Array
  }
}
</script>

<style lang="stylus" scoped>
  .swiper-img
    margin-right 16px
  .swiper-img:nth-child(1)
    margin-left 30px
  img
    height 210px
</style>
